package me.qi.kancha.dto.core;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import me.qi.kancha.dto.base.BaseDTO;
import me.qi.kancha.dto.enums.PersonType;

import java.io.Serializable;

/**
 * 人物
 * @author qi
 * @date 2022-10-27 03:55:33
 * @TableName person
 */
@TableName(value ="person")
@Data
public class PersonDTO extends BaseDTO implements Serializable {

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 删除标记
     */
    @TableField(value = "deleted", fill = FieldFill.INSERT) //逻辑删除
    @TableLogic(value = "0", delval = "1") //逻辑删除
    // @TableField(value = "deleted")
    private Integer deleted;

    /**
     * 头像
     */
    @TableField(value = "img")
    private String img;

    /**
     * 名字
     */
    @TableField(value = "name")
    private String name;

    /**
     * 头衔
     */
    @TableField(value = "title")
    private String title;

    /**
     * 介绍
     */
    @TableField(value = "info")
    private String info;

    /**
     * 类型
     */
    @TableField(value = "type")
    private PersonType type;

    /**
     * 所属编号
     */
    @TableField(value = "depend_code")
    private String dependCode;

    /**
     * 所属说明
     */
    @TableField(value = "depend_descr")
    private String dependDescr;

}